﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;

namespace Sinacor.OMM.DumpServer
{
    public partial class Dumper : ServiceBase
    {
        DumperMain _dumperMain;
        public Dumper()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            _dumperMain = new DumperMain();
            Thread thr = new Thread(new ThreadStart(_dumperMain.Run));
            thr.Name = "Dumper Main";
            thr.Start();
        }

        protected override void OnStop()
        {
            _dumperMain.Dispose();
        }

    }
}
